<template>
  <div class="app-container" style="height: 100vh">
    <PPMPage
      ref="pageManager"
      :tempId="10578"
      @load-data="loadSelect"
      @on-sumbit="testGet"
    >
    </PPMPage>
    {{ resultDate }}
  </div>
</template>

<script>
import http from "@/utils/http";
import PPMPage from "@/components/public/PPMPage";
export default {
  //11594
  data() {
    return {
      resultDate: "",
    };
  },
  created() {},
  mounted() {},
  components: {
    PPMPage,
  },
  methods: {
    async testGet(params) {
      
      let result = await http({
        url: "/ppm/postT",
        data: params,
        method: "POST",
      });
      this.resultDate = result;
    },

    loadSelect(params) {
      this.$refs.pageManager.pageModel[0].formStruct.attrs[1].tabStruct[0].attrs[0].components[0].options = [
        {
          value: "选项1",
          label: "黄金糕",
        },
        {
          value: "选项2",
          label: "双皮奶",
        },
        {
          value: "选项3",
          label: "蚵仔煎",
        },
        {
          value: "选项4",
          label: "龙须面",
        },
        {
          value: "选项5",
          label: "北京烤鸭",
        },
      ];
      this.$refs.pageManager.paramModel["2076-100000007"].options = [
        {
          value: "选项1",
          label: "黄金糕",
        },
        {
          value: "选项2",
          label: "双皮奶",
        },
        {
          value: "选项3",
          label: "蚵仔煎",
        },
        {
          value: "选项4",
          label: "龙须面",
        },
        {
          value: "选项5",
          label: "北京烤鸭",
        },
      ];
      
    },
  },
};
</script>

<style>
</style>